from . import views
from django.urls import re_path, path

urlpatterns = [
    path('api/v1.0/areas',views.HouseListView.as_view()),
    re_path(r'^api/v1.0/houses$',views.ReleaseHouseSearchListView.as_view()),
    #我的房屋列表路由
    path('api/v1.0/user/houses', views.MyhouseListView.as_view()),

    #上传房源图片路由
    path('api/v1.0/houses/<int:house_id>/images', views.UploadHouseImageView.as_view()),

    #房屋详情页面路由
    path('api/v1.0/houses/<int:house_id>', views.HomeDetailsView.as_view()),

    #首页房屋推荐
    path('api/v1.0/houses/index', views.HotHouseView.as_view()),

]